package cn.smbms.service.bill.impl;

import cn.smbms.beans.Bill;
import cn.smbms.dao.bill.BillDao;
import cn.smbms.service.bill.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author   ：陈慧杰
 * @ Date     ：Created in 20:44 2021/12/12
 */
@Service("billService")
public class BillServiceImpl implements BillService {
    @Autowired
    @Qualifier("billDao")
    private BillDao billDao;

    @Override
    public List<Bill> getBillList() {

        return  billDao.getBillList();
    }

    @Override
    public int addBill(Bill bill) {
        return  billDao.addBill(bill);
    }

    @Override
    public int deleteBill(String billid) {
        return billDao.deleteBill(billid);
    }

    @Override
    public Bill billView(String billid) {
        return billDao.billView(billid);
    }

    @Override
    public int doUserModify(Bill bill) {
         return  billDao.doUserModify(bill);
    }
}
